import request from '@/utils/request'

export function add(data) {
  return request({
    url: 'api/fymx',
    method: 'post',
    data
  })
}
export function addFix(data) {
  return request({
    url: 'api/fymx/createFixedCosts',
    method: 'post',
    data
  })
}

export function del(ids) {
  return request({
    url: 'api/fymx/',
    method: 'delete',
    data: ids
  })
}

export function edit(data) {
  return request({
    url: 'api/fymx',
    method: 'put',
    data
  })
}

export function groupByKfrq2Zj(params) {
  return request({
    url: 'api/fymx/groupByKfrq2Zj?jzid=' + params,
    method: 'get'
  })
}
export default { add, edit, del, groupByKfrq2Zj, addFix }
